#pragma once

#include<BWAPI.h>

using namespace BWAPI;

class ModuleBase : public AIModule
{
public:
	ModuleBase()
		:_started(false)
	{
	}
	virtual void onStart()
	{
		Broodwar->enableFlag(Flag::UserInput);
		Broodwar->enableFlag(Flag::CompleteMapInformation);
		_started = true;
	}
	virtual void onFrame()
	{
		if(_started)
		{
			Broodwar->drawTextScreen( 2 , 2 , "Frame count: %d" , Broodwar->getFrameCount());
		}
	}
private:
	bool _started;
};